<!DOCTYPE html>
<html class="x-admin-sm">
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>会员等级管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>

</head>


<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">会员管理</a>
                <a><cite>会员等级管理</cite></a>
            </span>

</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">


                <div class="layui-card-body ">

                    <fieldset class="layui-elem-field">
                        <legend>等级规则</legend>
                        <div class="layui-field-box">





                            <div class="layui-card-body ">
                                <table class="layui-table layui-form" >
                                    <thead>
                                    <tr>
                                        <th>等级</th>
                                        <th>等级名称</th>
                                        <th>积分下限</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="rule:${levelRuleList}">
                                        <td th:text="${rule.level}">6</td>
                                        <td th:text="${rule.name}">最强王者</td>
                                        <td th:text="${rule.point}">6000</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>


                            <div class="layui-card-body ">
                                <form class="layui-form layui-col-space5">

                                    <div aclass="layui-input-inline layui-show-xs-block">

                                        <button class="layui-btn layui-btn-danger" onclick="xadmin.open('添加新品','/level/modifyLevelRuleSuccessfully')">
                                            <i class="layui-icon"></i>修改
                                        </button>

                                        <button class="layui-btn layui-btn-warm" onclick="delAll()" >
                                            <i class="layui-icon"></i>保存
                                        </button>

                                    </div>
                                </form>
                            </div>





                        </div>
                    </fieldset>

                </div>

                <div class="layui-card-body ">

                    <fieldset class="layui-elem-field">
                        <legend>积分规则</legend>

                        <br>
                        <legend>积分 = 消费金额 * 换算倍率</legend>

                        <div class="layui-field-box">






<!--                            -->
<!--                            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 30px;">-->
<!--                                积分 = 消费金额 * 换算倍率-->
<!--                            </blockquote>-->




                            <div class="layui-card-body ">
                                <form class="layui-form layui-form-pane" action="/level/huansuan" method="post">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">换算倍率</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="beilv" lay-verify="required" placeholder="请输入换算倍率" autocomplete="off" class="layui-input" >
                                    </div>
                                    <button class="layui-btn layui-btn-danger" type="submit" >
                                        <i class="layui-icon"></i>保存
                                    </button>
                                </div>
                                </form>



                            </div>
                        </div>



                        <legend th:text="${msg}">aa</legend>
                        <br>
                    </fieldset>

                </div>


            </div>
        </div>
    </div>
</div>
</body>

</html>